package shared;

/**
 * class SharedData holds data for most of transactions
 */
public class SharedData extends Data {

	// variable to hold user accountName (CBS id)
	public String accountName;

	// variable to hold name of the user
	public String name;

	// variable to hold user password
	public String accountPassword;

	// variable for balance and spend/insert credits
	public double amount;

	// variable to hold amount to transfer
	public double transferAmount;

	/*
	 * transactionID, determines what transaction is executed.
	 * ======================
	 * -1. EXIT
	 * 1.  BALANCE 
	 * 2.  SPEND 
	 * 3.  INSERT 
	 * 4.  LOGIN 
	 * 5.  CCKMFACTOR 
	 * 6.  CCUSEFACTOR 
	 * 7.  NAME 
	 * 8.  SEND_TRANSACTION
	 * 9.  PROCESS_TRANSACTIONS
	 * 10. ACCEPT_TRANSACTION
	 * 11. DECLINE_TRANSACTION
	 * 12. TRANSACTION_LIMIT
	 * 13. ACCOUNT_EXIST
	 */
	public int transactionID;

	//variable to hold recipient 
	public String recipient;

	// variable to hold selection 
	public int selection;
}